package cn.honqun.tinycms.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author catstiger
 * @since 2024-02-07
 */
@Getter
@Setter
@TableName("t_role")
@Schema(name = "Role", description = "")
@NoArgsConstructor
@AllArgsConstructor
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    public Role(Long id) {
        this.id = id;
    }

    @Schema(description = "主键")
    @TableId("id")
    private Long id;

    @Schema(description = "角色标识")
    @TableField("role")
    private String role;

    @Schema(description = "角色名称")
    @TableField("name")
    private String name;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Schema(description = "操作人员ID")
    @TableField("operator")
    private Long operator;
}
